import axios from "@/api";

// 获取企业列表
export const getWrEnterpriseInfoAPI = () => {
  return axios({
    url: "/admin/upms/wrEnterpriseInfo/listByName",
    method: "get"
  });
};

//根据企业获取经纬度数据
export function getViolationsApi(data:any) {
  return axios({
    url: `/admin/upms/wrEnterpriseInfo/violations?enterpriseId=`+data.enterpriseId,
    method: "get",
    data
  });
}
